import { DisposeView } from "../../../../mvc/core/DisposeView";
import { ObjCreate } from "../../common/ObjCreate";
import { ImagesConst } from "../../../resource/ImagesConst";
import { Language } from "../../../../../extend/language/Language";
import { GlobalStyle } from "../../../../common/global/GlobalStyle";
import { LoaderHelp } from "../../../../common/display/LoaderHelp";
import { ResFileConst } from "../../../resource/ResFileConst";
//class GodSoulCurSelectBg
    
    export  class GodSoulCurSelectBg extends DisposeView
    {
        constructor()
        {
            super();
            this.mouseEnabled = false;
            this.mouseChildren = false;
            return;
        }

        /* internal  */onLoadResHandler(): void
        {
            pushUIToDisposeVec(ObjCreate.createGBitmap(ImagesConst.GodSoulCurSelectBg, -1, -10, this));
            pushUIToDisposeVec(ObjCreate.createGTextField(Language.getString(28696), 14, -5, 100, 20, this, GlobalStyle._textFormat6));
            return;
        }

        protected /* override */ createDisposedChildrenImpl(): void
        {
            super.createDisposedChildrenImpl();
            var loc1=ObjCreate.createBg(12, 82, 52, 22, this, ImagesConst.FightingStrgBg);
            loc1.alpha = 0.5;
            pushUIToDisposeVec(loc1);
            LoaderHelp.addResCallBack(ResFileConst.GodSoul, this.onLoadResHandler);
            return;
        }
    }
